package org.andy.shop.dao;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: Chen
 * @Date: 2016/4/16 14:32
 * @Email: wirechen@gmail.com
 * @Description: Dao通用接口
 */
public interface GenericDao<T, PK extends Serializable> {

    T getById(PK id);

    List<T> findAll();

    PK save(T entity);

    void delete(PK id);

    void update(T entity);
}